<div align="left"><?php $session->flash(); ?></div>
<?php echo $form->create('Usuario',array('url'=>array('action'=>'password')+(isset($this->params['url']['backing'])?array('?'=>array('backing'=>'/'.$this->params['url']['backing'])):array(''))));?>
<fieldset>
    <legend>Cambio de Contrase&ntilde;a</legend>
    <?php
        echo $form->input('Usuario.id', array('type'=>'hidden'));
    ?>
    <table cellpadding="3">
        <tr>
            <td width="50%">
<?php
        echo $form->input('Usuario.usuario', array('label'=>'Usuario', 'readonly'=>true));
        if ($usuario['grupo_id']!=1){
            echo $form->input('Usuario.password', array('type'=>'password', 'label'=>'Password', 'value'=>'','class'=>'noUppercase'));
        }
        echo $form->hidden('Usuario.grupo_id');
        echo $form->input('Usuario.nueva', array('type'=>'password', 'label'=>'Nuevo', 'value'=>'','class'=>'noUppercase'));
        echo $form->input('Usuario.reingreso', array('type'=>'password', 'label'=>'Reingreso', 'value'=>'','class'=>'noUppercase'));
?>
            </td>
        </tr>
    </table>
</fieldset>

<?php echo $form->submit('Guardar', array('class'=>'btnsave', 'div'=>false));?>
<?php echo $html->link('Cancelar', isset($this->params['url']['backing'])?'/'.$this->params['url']['backing']:array('action' => 'index'), array(
    'class'=>'lnkbutton btncancel',
    'div'=>false));?>
<?php echo $form->end();?>
<p/>